package com.gitee.fsmxm.zd.bili.listener;

import org.java_websocket.handshake.ServerHandshake;

import java.nio.ByteBuffer;

public interface MyWebSocketListener {
    public void onOpen(ServerHandshake serverHandshake);

    public void onMessage(String s);

    public void onMessage(ByteBuffer bytes);

    public void onClose(int code, String reason, boolean remote);

    public void onError(Exception e);
}
